package com.zhao.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class JumpController {
    @RequestMapping("/")
    public String toIndex(){
        return "redirect:/toIndex";
    }

    //跳转错误页面
    @RequestMapping("/toError")
    public String toError() {
        return "error/404";
    }

    //  跳转首页
    @RequestMapping("/toWelcome")
    public String toWelcome() {
        return "welcome";
    }

    //    跳转增加页面
    @RequestMapping("/toAdd")
    public String toAdd() {
        return "table/add";
    }


}
